﻿using System;
using Volo.Abp.Application.Dtos;
using Volo.Abp.MultiTenancy;

namespace EcoSystem
{
    public class DataPermissionGrantDto : EntityDto<Guid>, IMultiTenant
    {
        /// <summary>
        /// 
        /// </summary>
        public virtual Nullable<Guid> TenantId { get; protected set; }

        /// <summary>
        ///  适配类别（  U：用户  R：角色  C：客户端）
        /// </summary>
        public string ProviderName { get; set; }

        /// <summary>
        /// 授权目标编码（用户ID、角色名、客户端ID)
        /// </summary>
        public string ProviderKey { get; set; }

        /// <summary>
        /// 业务类别编码
        /// </summary>
        public string EnCode { get; set; }

        /// <summary>
        /// 业务标识编码
        /// </summary>
        public string DataId { get; set; }

        /// <summary>
        /// 是否允许授权
        /// </summary>
        public bool AllowAuthorize { get; set; }
    }
}
